Computes the optimally robust estimator for location with scale specified,
scale with location specified, or both if neither is specified. The computation
uses a k-step construction with an appropriate initial estimate for location
or scale or location and scale, respectively. Valid candidates are e.g.
median and/or MAD (default) as well as Kolmogorov(-Smirnov) or Cram\'er von
Mises minimum distance estimators; cf. Rieder (1994) and Kohl (2005). In case
package Biobase from Bioconductor is installed as is suggested,
median and/or MAD are computed using function rowMedians
.
These functions are optimized for the situation where one has a matrix
and wants to compute the optimally robust estimator for every row,
respectively column of this matrix. In particular, the amount of cross
errors is assumed to be constant for all rows, respectively columns.
If the amount of gross errors (contamination) is known, it can be
specified by eps
. The radius of the corresponding infinitesimal
contamination neighborhood is obtained by multiplying eps
by the square root of the sample size.
If the amount of gross errors (contamination) is unknown, try to find a
rough estimate for the amount of gross errors, such that it lies
between eps.lower
and eps.upper
.
In case eps.lower
is specified and eps.upper
is missing,
eps.upper
is set to 0.5. In case eps.upper
is specified and
eps.lower
is missing, eps.lower
is set to 0.
If neither eps
nor eps.lower
and/or eps.upper
is
specified, eps.lower
and eps.upper
are set to 0 and 0.5,
respectively.
If eps
is missing, the radius-minimax estimator in sense of
Rieder et al. (2008), respectively Section 2.2 of Kohl (2005) is returned.
In case of location, respectively scale one additionally has to specify
sd
, respectively mean
where sd
and mean
can
be a single number, i.e., identical for all rows, respectively columns,
or a vector with length identical to the number of rows, respectively
columns.
For sample size <= 2, median and/or MAD are used for estimation.
If eps = 0
, mean and/or sd are computed.